import { ref } from 'vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import en from 'element-plus/dist/locale/en.mjs'

const useElementPlusLocale = (l = 'en') => {
  const locale = ref(l === 'zh-CN' ? zhCn : en)
  return {
    locale
  }
}

export { useElementPlusLocale }
